CountCodeunitsOf
Type
operator
Summary
Counts the number of codeunits in Target.
Syntax
the number of codeunits in <Target>
Description
note
The number of codeunits returns the number of codeunits of the target string. It does not perform any grapheme boundary analysis.
Parameters
Name | Type | Description |
---|---|---|
Target | An expression which evaluates to a string. |
Examples
variable tVar as Number
variable tSource as String
put "hello" into tString
put the number of codeunits in tString into tVar
variable tString as String
put the empty string into tString
repeat tVar times
put "a" after tString
end repeat
// tString contains "aaaaa"